package com.sharding.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_order")
public class Order {

    private Long userId;

    // 设置主键使用mybatis 的雪花算法生成器
    @TableId(value = "order_id",type = IdType.ID_WORKER)
    private Long orderId;

    private String addressId;

    private String status;
}
